﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Xml;

namespace DualityEngine.Data
{
    public class GlobalServerConnector
    {
        public static bool ValidateUser(string name, string password)
        {
            WebClient c = new WebClient();
            string s = c.DownloadString("http://www.nimaesports.com/ValidateUser.php?us=" + name + "&&pw=" + password);

            XmlDocument document = new XmlDocument();
            document.LoadXml(s);

            return bool.Parse(document.SelectSingleNode("response").InnerText);
        }
    }
}
